

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  color: #5f6368;
}

.form-hint {
  font-size: 12px;
  color: #7a7f8c;
  margin: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #dadce0;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
  outline: none;
}

.resolution-control {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 32px minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
  background: rgba(26, 115, 232, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
}

.resolution-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #1a73e8;
}

.resolution-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #3c4043;
}

.resolution-value--fixed {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(26, 115, 232, 0.12);
  font-weight: 600;
  color: #1a73e8;
}

.resolution-value--input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
}

.resolution-input {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  color: #1f1f1f;
  -moz-appearance: textfield;
}

.resolution-input::-webkit-outer-spin-button,
.resolution-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.resolution-input:focus {
  outline: none;
}

.resolution-suffix {
  font-size: 12px;
  color: #5f6368;
  white-space: nowrap;
}

.grid-settings {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e8f1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
}

.grid-settings__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid-settings__title {
  margin: 4px 0 0;
  font-size: 18px;
  color: #1f1f1f;
}

.grid-settings__description {
  flex: 1;
  margin: 0;
  font-size: 13px;
  color: #5f6368;
}

.grid-accordion {
  position: relative;
}

.grid-accordion + .grid-accordion {
  margin-top: 12px;
}

.grid-accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 16px;
  font: inherit;
  text-align: left;
}

.grid-settings__group-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
}

.grid-accordion__chevron {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.12);
  position: relative;
}

.grid-accordion__chevron::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid #1a73e8;
  border-right: 2px solid #1a73e8;
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.grid-accordion.is-collapsed .grid-accordion__chevron::before {
  transform: translate(-50%, -40%) rotate(-135deg);
}

.grid-accordion__content {
  padding: 4px 4px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.grid-accordion__content[hidden] {
  display: none;
}

.grid-settings__description {
  margin-bottom: 4px;
}
